<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>订单列表页-美丽说</title>
	<!--<link rel="stylesheet" href="__STATIC__/bootstrap/css/bootstrap.min.css" />-->
	<link rel="stylesheet" href="__TEMPLATE__/css/order.css" />
	<script type="text/javascript" src="__STATIC__/jquery/jquery-1.7.2.min.js" ></script>
	<script type="text/javascript" src="__TEMPLATE__/js/porder.js" ></script>
</head>
<body>
	<!--顶部登录注册区域开始-->
	<include file='__TEMPLATE__/head.html'/>

	<!--导航条结束-->
	<!--订单头部开始-->
	<div id="order_head">
		<p><a href="">美丽说</a>>
		<a href="">我的美丽说订单</a>>
		订单列表</p>
	</div>
	
	
	<!--订单头部结束-->
	<!--我的订单主体内容部分开始-->
	<div id="order">
		<ul class="left">
			<li><a class="select" href="">已买到的商品</a></li>
			<li><a href="{|U:'Cart/ajax_add_cart'}">我的购物车</a></li>
			<li><a href="{|U:'Address/index'}">我的收货地址</a></li>
			<li><a href="">我的优惠券</a></li>
			<li><a href="">退款/退货</a></li>
			<li><a href="">售后</a></li>
			<li  class="last"><a href="">我的投诉</a></li>
		</ul><!--left-->
		<div class="order_title">
			<span style="width: 210px;">商品信息</span>
			<span style="width: 86px;">单价（元）</span>
			<span style="width: 57px;">数量</span>
			<span style="width: 136px;">售后</span>
			<span style="width: 102px;">合计（元）</span>
			<span  style="width: 128px;"><select name="status" class="status" style="margin-top: 3px; font-size: 1px;color: #666;font-weight: 700; width: 120px;"  class="form-control">
  <option  value="0" >未完成订单</option>
  <option <if value="$_GET['w']">selected</if> value="1">已完成订单</option>
</select></span>
			<span style="width: 101px;">操作</span>
		</div><!--order_title-->
		<if value="!$data">
			<div class="no_order">
				<div class="no">
					<p>很抱歉，没有找到相关的订单！</p>
					<a href="{|U:'Porder/index'}">查看全部订单</a>
				</div>
			</div>
			<else/>
		<foreach from='$data' key='$k' value='$v'>
			<div class="order_no">
				<span>订单号：{$v.orderno}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商家：<a href="">vastand维尚</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;成交时间：{$v.otime|date:'Y-m-d h:m:s',@@}</span>
			</div><!--order_no-->
			
			<!--订单详情-->
			
			<foreach from='$v["oid"]' key='$key' value='$value'>
			<div class="order_details">
				<span style="width: 210px;"><a  class="first" href="{|U:'Show/index',array('gid'=>$value['gid'])}"> <img src="__ROOT__/{$value.lthumb}" alt="" /> <p>{$value.gname|hd_substr:10,'...'}<br /><i>颜色：图片色&nbsp;尺码：均码</i></p></a></span>
				<span class="number" style="width: 86px;">{$value.price}</span>
				<span class="number" style="width: 57px;">{$value.pno}</span>
				<span style="width: 136px;">&nbsp;</span>
				<span class="price" style="width: 102px;">{$value.sprice}<br />免运费</span>
				<span  class="price"  style="width: 128px;">
					<if value="$v['status']">发货中<else/>等待付款</if>
					<br /><a href="">订单详情</a></span>
				<br />
				<a href="">关闭交易</a><br />
				
			</div><!--order_details-->
			</foreach>
			<if value="$v['status']">
				<else/>
				
				<div class="total">
					<span style="margin-right: 440px;" >请尽快付款，或者
						<a class="can_order" style="margin-left: 10px; width:60px;font-size: 12px; background: none;color: #FF6699; float: right;" href="javascript:;">取消订单</a>
					</span>
						<!--弹出提示框-->
							<div  class="del_one">
								<a href="javascript:;" style="float: right;background: none; width: 20px;" class="click"><img style="width: 18px;height: 18px;" src="__TEMPLATE__/img/click.jpg" alt="" /></a>
								<h4>提示</h4>
								<p>您是否要取消订单？</p>
								<div>
									<a style="margin-right:10; color: white;width: 30px;" class="con" href="{|U:'Porder/del',array('orderno'=>$v['orderno'])}">确定</a>
									<a style="margin: 0; width: 30px;background: #ccc;" class="canc" href="javascript:;">取消</a>
								</div>
			
							</div>
							<!--弹出提示框-->
					<span>总计：</span>
					<span class="spec">{$v.tprice}</span>
					<a href="">付款</a>
				</div>
			</if>
			
		</foreach>
		</if>
		<!--订单详情结束-->
	</div><!--order-->
	
	
	<!--我的订单主体内容部分结束-->
	
		<!--尾部开始-->
	<include file='__TEMPLATE__/bottom.html'/>
	
	<!--尾部结束-->
</body>
</html>